package cn.kgc.itrip.auth.service;

import cn.kgc.itrip.beans.common.ServerResponse;
import cn.kgc.itrip.beans.model.vo.ItripUserVo;

/**
 * @author 阿泽
 */
public interface IUserService {

    /**
     * 登录
     * @param userCode
     * @param password
     * @param userAgent
     * @return
     */
    ServerResponse usercode(String userCode, String password, String userAgent);

    /**
     *
     * @param itripUserVo
     * @param regId
     * @return
     * @throws Exception
     */
    ServerResponse addUser(ItripUserVo itripUserVo, Integer regId);

    /**
     * 验证
     * @param user
     * @param code
     * @return
     */
    ServerResponse activation(String user, String code);

    ServerResponse checkUserCode(String name);
}
